<?php get_header(); ?>
	<?php get_sidebar(); ?>

	<div class="section" id="mainbody">
		<div class="post">
			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
				<div class="posttitle">
					<h2><?php the_title(); ?></h2>
				</div>
				<div class="postcontent">		
					<?php the_content('<p>Read the rest of this page &rarr;</p>'); ?>
					<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				</div>
			<?php endwhile; else: ?>
				<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
			<?php endif; ?>
			<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
		</div>
	</div>

<?php get_footer(); ?>